<script type="text/javascript" src="js/jquery-min-1.4.2.js"></script>
<script type="text/javascript" src="js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="js/jquery.jsPlumb-1.0.4-min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $.ajax({
            type: "POST",
            url: "visualizacao/c_index.php",
            dataType: "html",
            contentType: "application/x-www-form-urlencoded; charset=utf-8",
            success: function(html){
                $("#conteudo").html(html);
                $("#conteudo").fadeIn(100);
            }
        });

        $("#head_nav a, #menu li a, #logo a").click(function(){
            var local = $(this).attr("class");
            $.ajax({
                type: "POST",
                url: "visualizacao/"+local+".php",
                dataType: "html",
                contentType: "application/x-www-form-urlencoded; charset=utf-8",
                beforeSend: function(){
                    $("#conteudo").css("height","300px");
                    $("#conteudo").html("<img src='visualizacao/images/ajax-loader.gif' style='margin-top: 150px; margin-left: 380px;'/>");
                },
                complete: function(){
                    $("#conteudo").css("height","auto");
                },
                success: function(html){
                    $("#conteudo").html(html);
                    $("#conteudo").fadeIn(100);
                }
            });
        });

        $("#busca_campo").focus(function(){
            $(this).val("");
        });

        $("#busca_campo").blur(function(){
            if(!$(this).val()){
                $(this).val("Busca...");
            }
        });

    });
</script>
<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/
include_once 'visualizacao/IndexClass.php';
$index = new IndexClass();
$index->topoLay();
$index->conteudoLay();
$index->footLay();
?>